<div>
  <div>
    <label for="urlinput"></label>
    <input type="text" id="urlinput" placeholder="请输入url" [(ngModel)]="url">
    <button (click)="httpGet()">发送GET请求</button>
    <button (click)="httpPost()">发送POST请求</button>
  </div>
  <div>
    <p>
      <span>router value: </span>
      <span class="sp">{{routerValue}}</span>
    </p>
    <p>
      <span>inject value</span>
      <span class="sp">{{injectValue}}</span>
    </p>
  </div>
  <div>
    <button (click) = "changeLoginState()">改变登录状态</button>
  </div>
</div>